package com.wst.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: tianruan
 * @Package: com.wst.provider.controller
 * @ClassName: PaymentController
 * @Author: 40971
 * @Description:
 * @Date: 2022/5/15 12:12
 * @Version: 2.0
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;


    @GetMapping(value = "/payment/{id}")
    public String payment(@PathVariable(value = "id") Integer id) {
        return "Nacos的注册中心的端口是：" + serverPort + ",id是：" + id;
    }
}
